import axios from "../utils/request"


// 商品分类
export const catelistReq = (currentPage = 1, pageSize = 5) => axios.get('/goods/catelist', {
    params: {
        currentPage,
        pageSize
    }
})

// 商品添加
export const goodsaddReq = data => axios.post('/goods/add', data)

// 商品查询
export const goodslistReq = (params) => axios.get('/goods/list', {
    params
})

// 修改商品
export const goodsEditReq = (data) => axios.post('/goods/edit', data)

// 商品分类
export const goodscatelistReq = (params) => axios.get('/goods/catelist', { params })

// 编辑分类
export const editcateReq = data => axios.post('/goods/editcate', data)
